<?php
$sessionId = -1;
session_start();

$loggedIn = false;
if(isset($_SESSION["id"]))
{
  $sessionId = $_SESSION["id"];
  $loggedIn = true;
}

$isAdmin = false;
if(isset($_SESSION["isAdmin"]))
  $isAdmin = $_SESSION["isAdmin"];
?>